﻿// =================================================================== 
// 项目说明
//====================================================================
// SunCity@Copy Right 2006-2008
// 文件： News.cs
// 项目名称：
// 创建时间：2015/3/18
// 负责人：
// ===================================================================
using System;
namespace EMS20.Entity
{
	/// <summary>
	///News数据实体
	/// </summary>
	[Serializable]
	public class NewsEntity
	{
		#region 变量定义
		///<summary>
		///自增ID
		///</summary>
		private int _n_id;
		///<summary>
		///类别ID
		///</summary>
		private int _category_id;
		///<summary>
		///用户id
		///</summary>
		private int _user_id;
		///<summary>
		///标题
		///</summary>
		private string _n_title = String.Empty;
		///<summary>
		///作者
		///</summary>
		private string _n_author = String.Empty;
		///<summary>
		///来源
		///</summary>
		private string _n_form = String.Empty;
		///<summary>
		///详细内容
		///</summary>
		private string _n_content = String.Empty;
		///<summary>
		///排序
		///</summary>
		private int _n_sort_id;
		///<summary>
		///查看次数
		///</summary>
		private int _n_click;
		///<summary>
		///是否锁定
		///</summary>
		private int _n_is_lock;
		///<summary>
		///发布时间
		///</summary>
		private DateTime _add_time = Convert.ToDateTime("1900 - 1 - 1");
		#endregion
		
		#region 构造函数
		///<summary>
		///
		///</summary>
		public NewsEntity()
		{
		}
		///<summary>
		///
		///</summary>
		public NewsEntity
		(
			int n_id,
			int category_id,
			int user_id,
			string n_title,
			string n_author,
			string n_form,
			string n_content,
			int n_sort_id,
			int n_click,
			int n_is_lock,
			DateTime add_time
		)
		{
			_n_id        = n_id;
			_category_id = category_id;
			_user_id     = user_id;
			_n_title     = n_title;
			_n_author    = n_author;
			_n_form      = n_form;
			_n_content   = n_content;
			_n_sort_id   = n_sort_id;
			_n_click     = n_click;
			_n_is_lock   = n_is_lock;
			_add_time    = add_time;
			
		}
		#endregion
		
		#region 公共属性
		
		///<summary>
		///自增ID
		///</summary>
		public int n_id
		{
			get {return _n_id;}
			set {_n_id = value;}
		}

		///<summary>
		///类别ID
		///</summary>
		public int category_id
		{
			get {return _category_id;}
			set {_category_id = value;}
		}

		///<summary>
		///用户id
		///</summary>
		public int user_id
		{
			get {return _user_id;}
			set {_user_id = value;}
		}

		///<summary>
		///标题
		///</summary>
		public string n_title
		{
			get {return _n_title;}
			set {_n_title = value;}
		}

		///<summary>
		///作者
		///</summary>
		public string n_author
		{
			get {return _n_author;}
			set {_n_author = value;}
		}

		///<summary>
		///来源
		///</summary>
		public string n_form
		{
			get {return _n_form;}
			set {_n_form = value;}
		}

		///<summary>
		///详细内容
		///</summary>
		public string n_content
		{
			get {return _n_content;}
			set {_n_content = value;}
		}

		///<summary>
		///排序
		///</summary>
		public int n_sort_id
		{
			get {return _n_sort_id;}
			set {_n_sort_id = value;}
		}

		///<summary>
		///查看次数
		///</summary>
		public int n_click
		{
			get {return _n_click;}
			set {_n_click = value;}
		}

		///<summary>
		///是否锁定
		///</summary>
		public int n_is_lock
		{
			get {return _n_is_lock;}
			set {_n_is_lock = value;}
		}

		///<summary>
		///发布时间
		///</summary>
		public DateTime add_time
		{
			get {return _add_time;}
			set {_add_time = value;}
		}
	
		#endregion
		
	}
}
